# import os
# import time
# content = ' 徐 睿 为 你 奉 献 香 吻'
# while True:
#     os.system('cls')
#     print(content)
#     time.sleep(0.2)
#     content=content[1:]+content[0]


items1 = [35, 12, 99, 68, 55, 87]
items2 = [45, 8, 29]

l3=items1+items2
print(l3)
print(l3[::-1])
print(l3[::-2])

import random
saizi=[0]*6
for _ in range(10000):
    i=random.randint(1,6)
    saizi[i-1]+=1

for i in range(6):
    print(f'{i+1}: {saizi[i]}')

l1=[x for x in range(1,10)]
print(l1)
l2=[x for x in 'xurui suck dick!' if x not in ' aeiou']
print(l2)

l4=[x+y for x in 'ABC' for y in '12']
print(l4)

girls='周慧敏','刘亦菲','董洁'
print(type(girls),girls)
ls,zq,pxs=girls
print(f'ls={ls} zq={zq} pxs={pxs}')

a, b, *c = range(1, 10)
print(a, b, c)
a, b, c = [1, 10, 100]
print(a, b, c)
a, *b, c = 'hello'
print(a, b, c)


def add(*args):
    print(type(args), args)
    total = 0
    for val in args:
        total += val
    return total
add(1, 10, 20)        # <class 'tuple'> (1, 10, 20)
add(1, 2, 3, 4, 5)    # <class 'tuple'> (1, 2, 3, 4, 5)


import sys
import timeit

a=list(range(10000))
b=tuple(range(10000))
print(sys.getsizeof(a),sys.getsizeof(b))


print(timeit.timeit('[1, 2, 3, 4, 5, 6, 7, 8, 9]'))
print(timeit.timeit('(1, 2, 3, 4, 5, 6, 7, 8, 9)'))